home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / ftn / getarg.z / getarg
Encoding:
Text File  |  2002-10-03  |  1.3 KB  |  40 lines

  1. GETARG(3F)                                             Last changed: 1-8-99
  2.  
  3.  
  4. NNAAMMEE
  5.      ggeettaarrgg, iiaarrggcc - Return Fortran command-line argument
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ssuubbrroouuttiinnee ggeettaarrgg((_i,, _c))
  9.      cchhaarraacctteerr**NN _c
  10.      iinntteeggeerr**44 _i
  11.      iinntteeggeerr**44 ffuunnccttiioonn iiaarrggcc(())
  12.      iinntteeggeerr _j
  13.      ccaallll ggeettaarrgg((_i,, _c))
  14.      _j == iiaarrggcc(())
  15.  
  16. IIMMPPLLEEMMEENNTTAATTIIOONN
  17.      IRIX systems
  18.  
  19. DDEESSCCRRIIPPTTIIOONN
  20.      ggeettaarrgg returns the _i-th command-line argument of the current process.
  21.  
  22.      iiaarrggcc returns the index of the last argument.
  23.  
  24.      For example, if a program were invoked using the following command:
  25.  
  26.           foo arg1 arg2 arg3
  27.  
  28.      ggeettaarrgg((22,, cc)) returns the string aarrgg22 in the character variable _c.
  29.  
  30.      iiaarrggcc returns 3 as the value of the function call.
  31.  
  32. NNOOTTEESS
  33.      The compiler expects the existence of a Fortran MMAAIINN__ program when
  34.      these functions are used.
  35.  
  36. SSEEEE AALLSSOO
  37.      ggeettoopptt(3C)
  38.  
  39.      This man page is available only online.
  40.